package com.android.kmlmrg.event;

import java.util.EventObject;

import com.android.kmlmrg.model.ApiSession;

public class RestLoginEvent extends EventObject {

	/***/
	private static final long serialVersionUID = 1L;
	
	private boolean isAuthentication;
	
	private ApiSession apiSession ;
	
	private boolean isFromFormView;
	
	public RestLoginEvent(Object source, boolean pIsAuthentication, ApiSession pApiSession , boolean pIsFromFormView) {
		super(source);
		setAuthentication(pIsAuthentication);
		setApiSession(pApiSession);
		setFromFormView(pIsFromFormView);
	}

	public boolean isAuthentication() {
		return isAuthentication;
	}

	private void setAuthentication(boolean isAuthentication) {
		this.isAuthentication = isAuthentication;
	}

	public ApiSession getApiSession() {
		return apiSession;
	}

	private void setApiSession(ApiSession apiSession) {
		this.apiSession = apiSession;
	}

	public boolean isFromFormView() {
		return isFromFormView;
	}

	private void setFromFormView(boolean isFromFormView) {
		this.isFromFormView = isFromFormView;
	}

	
}
